﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DD1 RID: 3537
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RankUpEquipmentScRsp : IMessage<RankUpEquipmentScRsp>, IMessage, IEquatable<RankUpEquipmentScRsp>, IDeepCloneable<RankUpEquipmentScRsp>, IBufferMessage
	{
		// Token: 0x17002CE8 RID: 11496
		// (get) Token: 0x06009EBD RID: 40637 RVA: 0x001A8874 File Offset: 0x001A6A74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RankUpEquipmentScRsp> Parser
		{
			get
			{
				return RankUpEquipmentScRsp._parser;
			}
		}

		// Token: 0x17002CE9 RID: 11497
		// (get) Token: 0x06009EBE RID: 40638 RVA: 0x001A887B File Offset: 0x001A6A7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RankUpEquipmentScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002CEA RID: 11498
		// (get) Token: 0x06009EBF RID: 40639 RVA: 0x001A888D File Offset: 0x001A6A8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RankUpEquipmentScRsp.Descriptor;
			}
		}

		// Token: 0x06009EC0 RID: 40640 RVA: 0x001A8894 File Offset: 0x001A6A94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpEquipmentScRsp()
		{
		}

		// Token: 0x06009EC1 RID: 40641 RVA: 0x001A889C File Offset: 0x001A6A9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpEquipmentScRsp(RankUpEquipmentScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009EC2 RID: 40642 RVA: 0x001A88C1 File Offset: 0x001A6AC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpEquipmentScRsp Clone()
		{
			return new RankUpEquipmentScRsp(this);
		}

		// Token: 0x17002CEB RID: 11499
		// (get) Token: 0x06009EC3 RID: 40643 RVA: 0x001A88C9 File Offset: 0x001A6AC9
		// (set) Token: 0x06009EC4 RID: 40644 RVA: 0x001A88D1 File Offset: 0x001A6AD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06009EC5 RID: 40645 RVA: 0x001A88DA File Offset: 0x001A6ADA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RankUpEquipmentScRsp);
		}

		// Token: 0x06009EC6 RID: 40646 RVA: 0x001A88E8 File Offset: 0x001A6AE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RankUpEquipmentScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009EC7 RID: 40647 RVA: 0x001A8918 File Offset: 0x001A6B18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009EC8 RID: 40648 RVA: 0x001A8957 File Offset: 0x001A6B57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009EC9 RID: 40649 RVA: 0x001A895F File Offset: 0x001A6B5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009ECA RID: 40650 RVA: 0x001A8968 File Offset: 0x001A6B68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009ECB RID: 40651 RVA: 0x001A899C File Offset: 0x001A6B9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009ECC RID: 40652 RVA: 0x001A89DA File Offset: 0x001A6BDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RankUpEquipmentScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009ECD RID: 40653 RVA: 0x001A8A0B File Offset: 0x001A6C0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009ECE RID: 40654 RVA: 0x001A8A14 File Offset: 0x001A6C14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003D3C RID: 15676
		private static readonly MessageParser<RankUpEquipmentScRsp> _parser = new MessageParser<RankUpEquipmentScRsp>(() => new RankUpEquipmentScRsp());

		// Token: 0x04003D3D RID: 15677
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D3E RID: 15678
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04003D3F RID: 15679
		private uint retcode_;
	}
}
